﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AtomicTypes;
using NDimArrayNamespace;

namespace Memory_Access
{
    public class QBooleanArray : QLabValues.AtomicTypeArray<AtomicTypes.QBoolean>
    {
        public QBooleanArray(params int[] dimensionSize)
            : base(dimensionSize)
        {
        }
        public QBooleanArray(QBoolean[] data, params int[] dimensionSize)
            : base(data, dimensionSize)
        {
        }

        //Darko ubacio
        public QBooleanArray(QBooleanArray qba)
            : base(qba.Data, qba.DimensionSize)
        {
        }


        public int[] ToIntArray()
        {
            // TODO: konvertovanje NDimArraya u niz intidzera (npr a11,a21,a31,a12,a22,a32,a13,a23,a33)
            return null;
        }

        public QBooleanArray GetSubArray(int[][] subNDimArrayCoordinates)
        {
            NDimArray<QBoolean> tempArray = base.GetSubNDimArray(subNDimArrayCoordinates);
            return new QBooleanArray(tempArray.Data, tempArray.DimensionSize);
        }

        public override QLabValues.IQLabValueType getEnumType()
        {
            return QLabValues.IQLabValueType.QBooleanArray;
        }
    }
}
